Interface.prototype.[Symbol.asyncIterator] - Node documentation
method Interface.prototype.[Symbol.asyncIterator]

Usage

import { Interface } from "node:readline";

Return Type

AsyncIterableIterator<string>